package com.hcc.repository.gen.config;

import lombok.Data;

/**
 * BasicConfig
 *
 * @author hushengjun
 * @date 2023/9/27
 */
@Data
public class BasicConfig {

    private String prefix = "";
    private String suffix = "";
    private Class<?> superClass;
    private boolean enableOverride = true;

    public String getSuperClassName() {
        if (getSuperClass() == null) {
            return null;
        }
        return getSuperClass().getSimpleName();
    }

    public String getSuperClassImportPackage() {
        if (getSuperClass() == null) {
            return null;
        }
        return getSuperClass().getName();
    }

    public String getSuperClassPackage() {
        if (getSuperClass() == null) {
            return null;
        }
        return getSuperClass().getPackage().getName();
    }

}
